package com.baymax.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 用户VO视图
 *
 * @Author: baymax
 * @CreateTime: 2023/3/28 21:04
 * @Version: 1.0
 */
@Data
public class SysUserVO implements Serializable {

    /**
     * 用户id
     */
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long userId;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 是否删除(0：未删除 1：已删除)
     */
    @TableField(value = "is_deleted")
    private Boolean isDeleted;

    /**
     * 角色列表
     */
    @TableField(exist = false)
    private List<SysRoleVO> roleVOList;

    public SysUserVO() {}

    public SysUserVO(Long userId, String username) {
        this.userId = userId;
        this.username = username;
    }
}
